package wangjg.xuexiban.activity.category;

import java.util.List;

import wangjg.xuexiban.R;
import wangjg.xuexiban.entity.Category;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

/**
 * 目前，未使用
 * @author wangjg
 *
 */
public class CategoryLinearActivity extends EditableCategoryActivity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.category_list);

		LinearLayout ll = (LinearLayout) this.findViewById(R.id.category_list);
		List<Category> list = this.getCategoryList();
		for(Category category:list){
			View view = this.getCategoryView(category);
			if(view!=null){
				ll.addView(view);	
			}
		}
	}

}
